# import py_eureka_client.eureka_client as eureka_client
# from rest_framework.views import APIView
# from rest_framework.response import Response
#
#
# # class IndexHandler(APIView):
# #     def data_received(self, chunk):
# #         pass
# #
# #     def get(self):
# #         name = [b""]
# #         try:
# #             name = self.request.arguments['name']
# #         except:
# #             print("name 为 空")
# #
# #         # 远程调用微服务
# #         res = eureka_client.do_service("eatfun_backend", "/eatfun_backend?name=" + bytes.decode(name[0]),
# #                                        # 返回类型，默认为 `string`，可以传入 `json`，如果传入值是 `json`，那么该方法会返回一个 `dict` 对象
# #                                        return_type="string")
# #         self.write("Python Response : " + res)
#
#
# class ActuatorInfo(APIView):
#     authentication_classes = []
#
#     # def data_received(self, chunk):
#     #     pass
#
#     def get(self, request, *args, **kwargs):
#         return Response("hahahha1")
#
#
# class ActuatorHealth(APIView):
#     authentication_classes = []
#
#     # def data_received(self, chunk):
#     #     pass
#
#     def get(self, request, *args, **kwargs):
#         return Response({
#             "status": "UP"
#         })
